<?php
/**
 * @file testCache002.php
 * @package DsCache
 * @subpackage 
 * @version $id: 0.1, utf8, 
 * @author LD King <kldscs[at]gmail.com>
 * @copyright Copyleft (D.) 2007 - 2009 MiFunny China Inc.
 * @url http://mifunny.info/
 * @desc 
 *   测试 Cache.class.php
 * @ChangeLog
 * $id: ,
 *   修改过后第二次 。。。。
 */
require_once '../Cache.class.php';

$_config['DsCache'] = array(
    'cache_type' => 'datafile',
  	'cache_dir' => 'tmp', //缓存目录(必须)
   	'life_time' => 3, //全局缓存时间 900s.
);

ob_start( Cache::output() );
 
$a = date('l jS \of F Y h:i:s A');
//$d = Cache::get('kk/qq/a');
//if ( !$d ){
//    Cache::set('kk/qq/a', $a);
//    $d = $a;
//}
var_dump($a);
//Cache::remove('a');
//Cache::clean();

echo "\n\t<br/>Now time is ".date('l jS \of F Y h:i:s A');



?>

